﻿@model pbvs.Models.File
@{
    ViewBag.Title = "Upload";
}

<h2>Upload</h2>

@using (Html.BeginForm("Upload", "File", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <div>
        <div>
            @Html.LabelFor(f => f.Title)
        </div>
        <div>
            @Html.TextBoxFor(f => f.Title)
        </div>
    </div>
    <div>
        <div>
            @Html.LabelFor(f => f.Caption)
        </div>
        <div>
            @Html.TextBoxFor(f => f.Caption)
        </div>
    </div>
    @Html.Label("File")
    @Html.TextBox("file", null, new { type = "file" })
    <input type="submit" value="Upload" />
}
